import type { App } from "vue";
import { createPinia } from "pinia";

const store = createPinia();

// 全局注册 store
export function setupStore(app: App<Element>) {
  app.use(store);
}

export * from "./modules/app.store";
export * from "./modules/permission.store";
export * from "./modules/settings.store";
export * from "./modules/tags-view.store";
export * from "./modules/user.store";
export * from "./modules/dict.store";
export * from "./modules/hmiconfig.store";
export * from "./modules/common-hmi-data.store";
export * from "./modules/area-setting.store";
export * from "./modules/hmi/com-api-table.store";
export * from "./modules/hmi/hmi-batch-delete.store";
export * from "./modules/hmi/setting-zone.store";
export * from "./modules/hmi/fault-report.store";
export * from "./modules/hmi/device-info.store";
export * from "./modules/hmi/version-info.store";
export * from "./modules/hmi/npi.store";
export * from "./modules/hmi/ptst.store";
export * from "./modules/hmi/time-setting.store";
export * from "./modules/hmi/chart.store";
export * from "./modules/hmi/lcd-contrast.store";
export * from "./modules/hmi/shedding.store";
export * from "./modules/hmi/upgrade.store";
export * from "./modules/hmi/wave-chart.store";
export { store };
